package com.iretailer.report.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.Executor;

@Configuration
public class ThreadPoolConfig {

    @Bean("sendRegularlyExecutor")
    public Executor taskExecutor() {
        return ThreadManager.getThreadPoolProxy("sendRegularly", 2, 10);
    }
}
